package com.hzmc.j2ee.agent;

import javax.servlet.*;
import java.io.IOException;

public class AgentFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("************************com.hzmc.j2ee.agent.AgentFilter.doFilter.before***********************");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("************************com.hzmc.j2ee.agent.AgentFilter.doFilter.after***********************");
    }

    @Override
    public void destroy() {

    }

}
